import request from '@/utils/request'

// 查询老年人列表
export function listElderly_person(query) {
  return request({
    url: '/report/elderly_person/list',
    method: 'get',
    params: query
  })
}

// 查询老年人详细
export function getElderly_person(id) {
  return request({
    url: '/report/elderly_person/' + id,
    method: 'get'
  })
}

// 新增老年人
export function addElderly_person(data) {
  return request({
    url: '/report/elderly_person',
    method: 'post',
    data: data
  })
}

// 修改老年人
export function updateElderly_person(data) {
  return request({
    url: '/report/elderly_person',
    method: 'put',
    data: data
  })
}

// 删除老年人
export function delElderly_person(id) {
  return request({
    url: '/report/elderly_person/' + id,
    method: 'delete'
  })
}
